home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / U-Z / Viewer.src.cpt / FileDisplay.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-12-30  |  566 b   |  40 lines  |  [TEXT/KAHL]

  1. #ifndef _FileDisplay_
  2. #define _FileDisplay_
  3.  
  4. #include <TextEdit.h>
  5. #include "LineFile.h"
  6.  
  7. enum{                    /* messages */
  8.         FD_New,
  9.         FD_Redraw,
  10.         FD_Scroll,
  11.         FD_Resize,
  12.         FD_SetTabs,
  13.         FD_Update,
  14.         FD_Click,
  15.         FD_Dispose,
  16.         FD_Copy,
  17.         FD_Activate,
  18.         FD_Idle
  19.     };
  20.  
  21. #define BORDER 4
  22.  
  23. typedef struct {
  24.     TEHandle    TE;
  25.     int            tabsize;
  26.     LFile        file;
  27.     long        sel_start, sel_end;
  28.     int            maxlines, actuallines;
  29.     long        filestarts[];        /* variable size */
  30.     } FDRec;
  31. typedef FDRec *FDPtr;
  32. typedef FDPtr *FDHandle;
  33.  
  34. /* prototypical call */
  35.  
  36. void FileDisplay( int message, ... );
  37.  
  38. #endif
  39.  
  40.